package com.itgone.easyblog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itgone.easyblog.entity.base.BaseEntity;

import java.util.Date;

/**
 * (TBlog)表实体类
 *
 * @author Earlman
 * @since 2023-03-24 13:54:19
 */
@TableName("t_blog")
public class Blog extends BaseEntity {
    //博客标题
    private String title;
    //博客简介
    private String summary;
    //博客内容
    private String content;
    //标签uid
    private String tagUid;
    //博客点击数
    private Integer clickCount;
    //博客收藏数
    private Integer collectCount;
    //标题图片uid
    private String titlePic;
    //状态
    private String status;
    //是否原创（0:不是 1：是）
    private String isOriginal;
    //作者
    private String author;
    //排序字段
    private Integer sort;
    //是否开启评论(0:否 1:是)
    private Integer openComment;
    //创建人
    private Integer createUser;
    //更新人
    private Integer updateUser;
    //创建时间
    private Date createTime;
    //更新时间
    @TableField(update = "now()")
    private Date updateTime;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTagUid() {
        return tagUid;
    }

    public void setTagUid(String tagUid) {
        this.tagUid = tagUid;
    }

    public Integer getClickCount() {
        return clickCount;
    }

    public void setClickCount(Integer clickCount) {
        this.clickCount = clickCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public String getTitlePic() {
        return titlePic;
    }

    public void setTitlePic(String titlePic) {
        this.titlePic = titlePic;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIsOriginal() {
        return isOriginal;
    }

    public void setIsOriginal(String isOriginal) {
        this.isOriginal = isOriginal;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getOpenComment() {
        return openComment;
    }

    public void setOpenComment(Integer openComment) {
        this.openComment = openComment;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Integer getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}

